package com.yeswater.multithread.chapter2.test2_1.test8;

import org.junit.Test;

/**
 * author : yeswater
 * date : 2023/10/19
 */

public class RunTest {

    @Test
    public void test() {
        Thread t = new Thread(() -> {
            Sub sub = new Sub();
            sub.operateISubMethod();
        });
        t.start();
    }

    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            Sub sub = new Sub();
            sub.operateISubMethod();
        });
        t.start();
    }

}
